<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>首页</title>
    <script type="application/javascript" src="js/jquery-3.5.1.js"></script>
    <script type="application/javascript" src="js/jquery.cookie.js"></script>
</head>
<body>
<span></span>,欢迎登录系统
</body>
<script type="application/javascript">
    $(function () {
        var cookie = $.cookie("token");
        $.get("/api/user/info/" + cookie, function (data) {
            $('span').html(data);
        });
    })

</script>

</html>